Skip to content

Conversation

axross
Copy link
Owner

@axross axross commented Oct 7, 2019

No description provided.

@axross axross self-assigned this Oct 7, 2019
@@ -0,0 +1,10 @@
import { test } from "https://deno.land/std/testing/mod.ts";
import { assertEquals } from "https://deno.land/std/testing/asserts.ts";
import { createSinglyLinkedListNode } from '../test_utilities/linked_list.ts';
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy has a fix for the issue: Strings must use doublequote.

Suggested change
import { createSinglyLinkedListNode } from '../test_utilities/linked_list.ts';
import { createSinglyLinkedListNode } from "../test_utilities/linked_list.ts";

@@ -0,0 +1,17 @@
import { SinglyLinkedListNode } from '../types/linked_list.ts';
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy has a fix for the issue: Strings must use doublequote.

Suggested change
import { SinglyLinkedListNode } from '../types/linked_list.ts';
import { SinglyLinkedListNode } from "../types/linked_list.ts";

// 2. Add Two Numbers
// https://leetcode.com/problems/add-two-numbers/
export default function addTwoNumbers(nodeA: SinglyLinkedListNode<number>, nodeB: SinglyLinkedListNode<number>) {
if (!nodeA || !nodeB) return nodeA ?? nodeB ?? null;
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy has a fix for the issue: Expected { after 'if' condition.

Suggested change
if (!nodeA || !nodeB) return nodeA ?? nodeB ?? null;
if (!nodeA || !nodeB) {return nodeA ?? nodeB ?? null;}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant